package br.eck.stage.events;

import br.eck.stage.Stage;

public class ShowMessageEvent extends Event {

    private String message;
    private int time;

    public ShowMessageEvent(Stage stage, String message, int time) {
        super(stage);
        this.message = message;
        this.time = time;
    }

    @Override
    public void execute() {
        getStage().showMessage(message, time);
    }

}
